<?php

namespace app\auth\controllers;

class Auth
{
    public static function allow()
    {
    }

    public static function deny()
    {
    }

    public static function check()
    {
    }

    public static function isAdmin()
    {
    }

    public static function isGuest()
    {
    }

    /**
     * 是否作者本人
     */
    public static function isAuthor(int $user_id, int $url_id)
    {
        return $user_id === $url_id;
    }
}